<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>活动详情</title>
    <link rel="stylesheet" type="text/css" href="__CSS__api.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__aui.css"/>
    <style>
        html,
        body {
            /*color: #333;*/
            /*padding-bottom: 2.15rem;*/
        }

        /*header*/

        .aui-bar-nav .aui-iconfont {
            position: relative;
            font-family: "aui_iconfont" !important;
            font-size: 0.75rem;
            color: #E73C5C;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 2.4rem;
        }

        .aui-bar-nav {
            background-color: transparent;
            position: fixed;
            top: 0;
        }

        .aui-icon-tu {
            height: 2.4rem;
            width: 70px;
            background: url('__IMG__main1_back1.png') no-repeat 0.75rem center;
            background-size: 40px 40px;
        }

        .aui-bar-nav .aui-title {
            font-size: 0.9rem;
            color: #333333;
            font-weight: 500;
        }

        .aui-icon-rightu {
            height: 2.4rem;
            width: 70px;
            background: url('__IMG__main1_share.png') no-repeat 0.75rem center;
            background-size: 40px 40px;
        }

        /*footer*/

        .footer {
            height: 3.5rem;
            background-color: #fff;
            padding: 0;
        }

        .like {
            width: 3.5rem;
        }

        .like_img {
            width: 1.2rem;
            height: 1.2rem;
            margin: 1.15rem auto;
        }

        .like_right {
            padding: 0.5rem 0.75rem;
            /*padding-right: 0.75rem;*/
        }

        .like_txt {
            width: 100%;
            height: 100%;
            color: #fff;
            font-weight: 500;
            text-align: center;
            line-height: 2.5rem;
            font-size: 0.8rem;
            background-color: #E73C5C;
            border-radius: 0.25rem;
        }

        .like_txt1 {
            width: 100%;
            height: 100%;
            color: #fff;
            font-weight: 500;
            text-align: center;
            line-height: 2.5rem;
            font-size: 0.8rem;
            background-color: #E73C5C;
            border-radius: 0.25rem;
        }

        /*content*/

        .header_img {
            width: 100%;
            height: 10rem;
        }

        .header_img img {
            width: 100%;
            height: 10rem;
        }

        .header_title {
            color: #333;
            font-weight: 500;
            font-size: 0.75rem;
            padding: 0.5rem 0.75rem 0;
        }

        .jiangzuo {
            border-radius: 0.2rem;
            margin-top: 0.5rem;
            color: #ccc;
            font-size: 20px;
            padding: 0.2rem 0.5rem;
            display: inline-block;
            border: 1px solid #E6E6E6;
            font-weight: normal;
            margin-left: 0.75rem;
            transform-origin: top left;
            -webkit-transform-origin: top left;
            -ms-transform-origin: top left;
            -moz-transform-origin: top left;
            -o-transform-origin: top left;
            transform: rotate(7deg);
            -ms-transform: scale(0.5);
            /* IE 9 */
            -moz-transform: scale(0.5);
            /* Firefox */
            -webkit-transform: scale(0.5);
            -o-transform: scale(0.5);
        }

        .title_jiangzuo {
            background-color: #fff;
            height: 50px;
        }

        .outer_all {
            margin-top: 0.5rem;
            background-color: #fff;
            padding: 0 0.75rem;
            font-size: 0.75rem;
        }

        .outer {
            height: 2.5rem;
            line-height: 2.55rem;
        }

        .tubiao {
            width: 22px;
            height: 100%;
            display: flex;
            align-items: center;
            margin-right: 0.5rem;
        }

        .tubiao img {
            width: 22px;
            height: 22px;
            display: inline-block;
        }

        .outer_all .outer:nth-child(2) {
            height: auto;
            line-height: normal;
        }

        .address {
            padding: 17px 0 15px;
        }

        .address_img {
            width: 22px;
            background: url('__IMG__main1_address.png') no-repeat center center;
            background-size: 22px 22px;
            margin-right: 0.5rem;
        }

        .rich_text {
            margin-top: 0.5rem;
            padding: 0.75rem;
            background-color: #fff;
        }

        /*评论*/

        .comment {
            margin-top: 0.5rem;
            padding: 0.75rem;
            font-size: 0.7rem;
            background-color: #fff;
        }

        .comment_title {
            margin-bottom: 0.75rem;
        }

        .user_img {
            width: 2.5rem;
        }

        .user_img img {
            width: 1.75rem;
            height: 1.75rem;
        }

        .user_name {
            font-size: 0.65rem;
            height: 1.75rem;
            line-height: 1.75rem;
        }

        .comment_delete {
            float: right;
            width: 2.5rem;
            height: 1.75rem;
            display: inline-block;
            background: url('__IMG__main1_delete.png') no-repeat right center;
            background-size: 17px 17px;
        }

        /*.comment_desc,*/
        .comment_imgs, .comment_imgs1, .comment_imgs2 {
            margin-top: 0.5rem;
            /*padding-bottom: 0.5rem;*/
        }

        .comment_imgs img, .comment_imgs1 img, .comment_imgs2 img {
            float: left;
            width: 100px;
            height: 100px;
            margin-right: 0.5rem;
            border-radius: 0.25rem;
        }

        .comment_imgs2 img {
            width: 8.5rem;
            height: 8.5rem;
        }

        .comment_imgs img:last-child, .comment_imgs1 img:last-child {
            float: left;
            margin-right: 0;
        }

        .comment_txt {
            background-color: #f5f5f5;
            padding: 0.75rem 0.5rem 0.75rem 0.75rem;
            margin-top: 0.5rem;
            /*margin-bottom: 0.3rem;*/
        }

        .red_delete {
            float: right;
            color: #E73C5C;
            font-size: 0.6rem;
            padding: 2px 0 0 10px;
        }

        .comment_two {
            margin-top: 0.3rem;
        }

        .comment_three {
            margin-top: 0.5rem;
            color: #47A1FE;
        }

        .edit {
            width: 2.8rem;
            height: 2.8rem;
            border-radius: 50%;
            margin: 0.75rem auto;
        }

        .comment_footer {
            height: 30px;
            line-height: 30px;
            color: #b3b3b3;
            font-size: 0.8rem;
            margin-top: 0.25rem;
        }

        .comment_time {
            font-size: 0.6rem;
        }

        .zan {
            width: 22px;
            height: 30px;
            display: inline-block;
            background: url('__IMG__main1_nozan.png') no-repeat center center;
            background-size: 13px 13px;
            vertical-align: bottom;
        }

        .zan1 {
            width: 22px;
            height: 30px;
            display: inline-block;
            background: url('__IMG__main1_zan.png') no-repeat center center;
            background-size: 13px 13px;
            vertical-align: bottom;
        }

        .comment_total {
            width: 22px;
            height: 30px;
            display: inline-block;
            background: url('__IMG__main1_news.png') no-repeat center center;
            background-size: 13px 13px;
            vertical-align: bottom;
        }

        .float_right {
            display: inline-block;
            width: auto;
            height: 30px;
            line-height: 30px;
            float: right;
        }

        .comment_all {
            margin-right: 1rem;
        }
    </style>
    <style>
        /*献爱心弹框*/

        .tan1 {
            position: fixed;
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 666;
            background-color: rgba(0, 0, 0, 0.2);
        }

        .four {
            padding-top: 20px;
            background-color: #FFFFFF;
        }

        .share_tit {
            text-align: center;
            font-size: 15px;
            color: #333333;
            padding-top: 0.75rem;
            padding-bottom: 1.05rem;
        }

        .four_11 {
            width: 2.25rem;
            height: 2.25rem;
            margin: 0 auto;
        }

        .four_11 img {
            width: 100%;
            height: 100%;
        }

        .four_name {
            font-size: 13px;
            color: #999999;
            padding-top: 0.5rem;
            text-align: center;
        }

        .cancel {
            height: 2.5rem;
            line-height: 2.5rem;
            font-size: 16px;
            color: #333333;
            text-align: center;
            background-color: #FFFFFF;
        }

        /*捐赠弹框*/

        .tan2 {
            position: fixed;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            z-index: 100000;
            background-color: rgba(0, 0, 0, 0.2);
        }

        .all {
            background-color: #FFFFFF;
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }

        .tit {
            padding-top: 1.275rem;
            padding-bottom: 1.025rem;
            color: #333333;
            font-size: 0.75rem;
        }

        .choose {
            width: 100%;
        }

        .label {
            position: relative;
            display: inline-block;
            width: 27%;
            height: 1.7rem;
            line-height: 1.7rem;
            text-align: center;
            border-radius: 0.25rem;
            margin-bottom: 4.5px;
            color: #E73C5C;
            font-size: 0.75rem;
        }

        .label::before {
            content: '';
            height: 200%;
            width: 199.5%;
            position: absolute;
            top: -55%;
            left: -52%;
            border-radius: 0.5rem;
            border: 1px solid #E73C5C;
            transform: scale(0.5);
            -webkit-transform: scale(0.5);
            -ms-transform: scale(0.5);
            -moz-transform: scale(0.5);
            -o-transform: scale(0.5);
            font-size: 1.5rem;
        }

        .label_choose {
            color: #FFFFFF;
            font-size: 0.75rem;
            background-color: #E73C5C;
        }

        .label:nth-child(3n+2) {
            margin-right: 8%;
            margin-left: 8%;
        }

        .shuru {
            position: relative;
        }

        .shuru input[type="text"] {
        position: absolute;
        top: 0;
        left: 0;
        height: 3.3rem;
        width: 200%;
        line-height: auto;
        background-color: #fff;
        color: #333;
        font-size: 28px;
        border: 1px solid #E6E6E6;
        border-radius: 12px;
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform-origin: left top;
        }

        .shuru input::-webkit-input-placeholder {
            color: #CCCCCC;
            font-size: 28px;
        }

        .donate {
            height: 1.65rem;
            line-height: 1.65rem;
            text-align: center;
            border-radius: 0.25rem;
            color: #FFFFFF;
            font-size: 0.75rem;
            background-color: #E73C5C;
            margin-left: 0.55rem;
            padding-left: 0.65rem;
            padding-right: 0.65rem;
        }

        .btn {
            margin-bottom: 1.475rem;
        }

        textarea {
            -webkit-appearance: none;
            background: white;
        }

        .content {
            width: 13.5rem;
            height: 7.35rem;
            margin: 0 auto 0;
            background-color: #fff;
            border-radius: 0.25rem;
            text-align: center;
        }

        .title {
            font-size: 16px;
            color: #333;
            height: 4.9rem;
            line-height: 4.9rem;
        }

        .choose {
            height: 2.45rem;
            line-height: 2.45rem;
        }

        .left {
            width: 260px;
            color: #666666;
            font-size: 16px;
        }

        .right {
            width: 260px;
            color: #E73C5C;
            font-size: 16px;
        }

        .middle_line {
            color: #f5f5f5;
        }
    </style>
    <style>
        .content1 {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background-color: #fff;

            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .title3 {
            font-size: 15px;
            color: #333;
            padding-top: 1.3rem;
            padding-bottom: 0.75rem;
        }

        .title2 {
            font-size: 12px;
            color: #B3B3B3;
        }

        .renzheng1 {
            width: 3.1rem;
            height: 2.35rem;
            margin: 1.4rem auto 1.65rem;
        }

        .choose1 {
            height: 2.5rem;
            line-height: 2.5rem;
        }

        .left1 {
            color: #333;
            font-size: 14px;
        }

        .right1 {
            color: #FB495D;
            font-size: 14px;
        }

        .leftLine1 {
            background-size: 1px 100%;
            background-repeat: no-repeat;
            background-position: left;
            background-image: linear-gradient(0, #EDEDED 0, #EDEDED 50%, transparent 50%);
            background-image: -webkit-linear-gradient(180deg, #EDEDED 0, #EDEDED 50%, transparent 50%);
        }
    </style>
    <style>
        .allImgCommen {
            padding-bottom: 0.5rem;
        }

        .img2 {
            width: 8.5rem;
            height: 8.5rem;
        }

        /*两张*/
        .img3 {
            width: 5.5rem;
            height: 5.5rem;
            margin-right: 0.5rem;
            float: left;
        }

        /*三张*/
        .img4 {
            width: 3.84rem;
            height: 3.84rem;
            float: left;
        }

        .img4:nth-child(3n+2) {
            margin-right: 2%;
            margin-left: 2%;
        }
    </style>
    <style>
        .ovfHiden{overflow: hidden;height: 100%;}

        /** {*/
            /*border：1px solid*/
        /*}*/

        html, body {
            width: 100%;
            height: 100%;
        }

        body {
            padding-bottom: 100px;
        }

        .flex-wrap {
            display: -webkit-box;
            display: box;
            display: -webkit-flex;
            display: flex;
        }

        .flex-con {
            -webkit-box-flex: 1;
            -webkit-flex: 1;
            flex: 1;
        }

        .flex-vertical {
            -webkit-box-horizontal: vertical;
            -webkit-flex-flow: column;
            flex-flow: column;
        }

        .wei_huifu {
            width: 100%;
            height: 100%;
            position: fixed;
            z-index: 999;
        }

        .wei_huifu0 {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
        }

        .wei_huifu1 {
            width: 100%;
            min-height: 50px;
            background-color: #ffffff;
            position: absolute;
            bottom: 0;
        }
        .wei_huifu2 {
            width: 74px;
            background-color: #ffffff;
            color: #E86628;
            text-align: center;
            font-size: 16px;
            height: 50px;
            border: 0;
        }

        input[type='text'].wei_input {
            width: 100%;
            height: 30px;
            background-color: #f5f5f5;
            border-radius: 15px;
            outline: 0;
            margin-top: 10px;
        }

        .hidden {
            display: none;
        }
    </style>
</head>

<body>
<div class="header_img" style="margin-top: 2px;">
    <img src="{$list.active_image}" alt="">
</div>
<div class="title_jiangzuo">
    <div class="header_title aui-ellipsis-2">
        {$list.active_name}
    </div>
</div>

<div class="outer_all">
    <div class="outer flex-wrap underLine2">
        <div class="tubiao"><img src="__IMG__main1_sponsor.png" alt=""></div>
        <div class="" tapmode="active">报名人数：{$list.active_member_num}</div>
        <div class="flex-con"></div>
    </div>
    <div class="outer flex-wrap underLine2">
        <div class="address_img"></div>
        <div class="flex-con address">
            <div class="aui-ellipsis-2 ">
                {$list.active_address}
            </div>
        </div>
    </div>
    <div class="outer flex-wrap">
        <div class="tubiao"><img src="__IMG__main1_time.png" alt=""></div>
        <div class="">{$list.active_start_time}至{$list.active_end_time}</div>
        <div class="flex-con"></div>
    </div>
</div>
<!-- 富文本 -->
<div class="rich_text">{$list.active_content}</div>
{if $have==1}
{if $have_data.am_status == 2}
<div class="rich_text">
    备注：<br />
    <?php echo nl2br($have_data['am_remark']); ?>
</div>
{/if}
{/if}
<!-- 富文本 活动详情 -->


<div style="height:70px"></div>


<footer class="footer flex-wrap topLine1" id="caozuo">
    {if $list.active_status==1}
        {if $have==1}
            {if $have_data.am_user_status == 3}
            <div class="flex-con like_right">
                <div class="like_txt" onclick="baoming(this)" tapmode='active'>审核失败</div>
            </div>
            {else /}
            <div class="flex-con like_right">
                <div class="like_txt" style="background-color:#f39dad;">
                    {if $have_data.am_user_status == 1}待审核{/if}
                    {if $have_data.am_user_status == 2}已报名{/if}
                </div>
            </div>
            {/if}
            {if $have_data.am_status == 1 && $have_data.am_user_status == 2}
            <div class="flex-con like_right">
                <div class="like_txt" onclick="ercode(this)">核销二维码</div>
            </div>
            {/if}
            {if $have_data.am_status == 2 && $have_data.am_user_status == 2}
            <div class="flex-con like_right">
                <div class="like_txt" style="background-color:#f39dad;">已核销</div>
            </div>
            {/if}
        {else /}
            <div class="flex-con like_right">
                <div class="like_txt" onclick="baoming(this)" tapmode='active'>我要报名</div>
            </div>
        {/if}
    {else /}
        <div class="flex-con like_right">
            <div class="like_txt" style="background-color:#f39dad;">活动已结束</div>
        </div>
    {/if}

</footer>
<input type="hidden" id="aid" value="{$list.active_id}">
<input type="hidden" id="have_num" value="{$have_num}">
<input type="hidden" id="allnum" value="{$list.active_member_num}">
<input type="hidden" id="src" value="{$have_data.am_ercode}">
<!--捐赠弹框-->
<div class="all_div" style="display:none;width: 100%;height: 100%;background-color: gray;position: absolute;z-index: 100;opacity: 0.5;top: 0;left: 0;background-color: black;text-align: center;">
</div>
<img src="" id="image" width="200" height="200" style="display:none;position: absolute;top: 50%;left: 50%;margin-top: -100px;margin-left: -100px;z-index: 999;">
</body>
<script type="text/javascript" src="__JS__tt.js"></script>
<script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__layer_mobile/layer.js"></script>
<script type="text/javascript" src="__JS__api.js"></script>
<script>
    var aid = $('#aid').val();
    function baoming() {
        var have_num = $('#have_num').val();
        var all = $('#allnum').val();
        if(have_num >= all){
            layer.open({
                content: '已超出报名人数，可稍后再试，等待其他用户审核结果！'
                ,skin: 'msg'
                ,time: 3 //2秒后自动关闭
            });
        }else{
            location.href = '{:url("Index/baoming")}?aid=' + aid;
        }
    }
    function ercode() {
        var src = $('#src').val();
        $('#image').attr('src',src);
        $('.all_div').css('display','block');
        $('#image').css('display','block');
        $('html,body').addClass('ovfHiden');
    }
    $('.all_div,#image').click(function () {
        $('.all_div').css('display','none');
        $('#image').css('display','none');
        $('html,body').removeClass('ovfHiden');
    });
</script>